home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / macros / plain / contrib / defstring.tex < prev    next >
LaTeX Document  |  1992-08-26  |  1.0 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: LaTeX Document (document/latex).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert LaTeX Document (document/latex) magic Supported
100% dexvert Texinfo Document (document/texInfo) magic Supported
1% dexvert Corel 10 Texture (image/corel10Texture) ext Unsupported
1% dexvert Croteam texture file (image/croteamTextureFile) ext Unsupported
1% dexvert Text File (text/txt) fallback Supported
100% file TeX document text default
99% file LaTeX document, ASCII text default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime text/x-matlab default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 25 20 2d 2a 2d 20 4d 6f | 64 65 3a 20 54 65 58 20 |% -*- Mo|de: TeX |
|00000010| 2d 2a 2d 0a 0a 5c 69 66 | 78 5c 74 68 69 73 66 69 |-*-..\if|x\thisfi|
|00000020| 6c 65 69 73 5c 61 6e 55 | 6e 64 65 66 69 6e 65 64 |leis\anU|ndefined|
|00000030| 4d 61 63 72 6f 5c 69 6e | 70 75 74 20 6d 61 79 62 |Macro\in|put mayb|
|00000040| 65 6c 6f 61 64 20 5c 66 | 69 0a 0a 5c 74 68 69 73 |eload \f|i..\this|
|00000050| 66 69 6c 65 69 73 7b 3c | 65 62 2e 74 65 78 2e 74 |fileis{<|eb.tex.t|
|00000060| 65 78 6c 6f 63 61 6c 3e | 64 65 66 73 74 72 69 6e |exlocal>|defstrin|
|00000070| 67 7d 20 25 20 61 62 6f | 72 74 20 6c 6f 61 64 69 |g} % abo|rt loadi|
|00000080| 6e 67 20 69 66 20 77 65 | 27 72 65 20 61 6c 72 65 |ng if we|'re alre|
|00000090| 61 64 79 20 6c 6f 61 64 | 65 64 0a 0a 5c 69 6e 70 |ady load|ed..\inp|
|000000a0| 75 74 20 72 65 64 65 66 | 69 6e 65 0a 0a 25 20 54 |ut redef|ine..% T|
|000000b0| 68 69 73 20 66 69 6c 65 | 20 64 65 66 69 6e 65 73 |his file| defines|
|000000c0| 20 74 68 65 20 74 6f 70 | 2d 6c 65 76 65 6c 20 63 | the top|-level c|
|000000d0| 6f 6e 73 74 72 75 63 74 | 69 6f 6e 20 0a 25 0a 25 |onstruct|ion .%.%|
|000000e0| 20 20 20 20 20 20 20 5c | 64 65 66 73 74 72 69 6e | \|defstrin|
|000000f0| 67 5c 66 6f 6f 20 22 74 | 68 69 73 20 69 73 20 61 |g\foo "t|his is a|
|00000100| 20 73 74 72 69 6e 67 20 | 77 69 74 68 20 5c 24 25 | string |with \$%|
|00000110| 20 73 70 65 63 69 61 6c | 20 63 68 61 72 61 63 74 | special| charact|
|00000120| 65 72 73 22 0a 25 0a 25 | 20 77 68 69 63 68 20 64 |ers".%.%| which d|
|00000130| 65 66 69 6e 65 73 20 74 | 68 65 20 63 6f 6e 74 72 |efines t|he contr|
|00000140| 6f 6c 20 73 65 71 75 65 | 6e 63 65 20 5c 66 6f 6f |ol seque|nce \foo|
|00000150| 20 73 6f 20 74 68 61 74 | 20 69 74 20 65 78 70 61 | so that| it expa|
|00000160| 6e 64 73 20 69 6e 74 6f | 0a 25 20 61 20 22 7b 22 |nds into|.% a "{"|
|00000170| 20 62 65 67 69 6e 2d 67 | 72 6f 75 70 20 73 79 6d | begin-g|roup sym|
|00000180| 62 6f 6c 2c 20 61 20 73 | 65 71 75 65 6e 63 65 20 |bol, a s|equence |
|00000190| 6f 66 20 70 6c 61 69 6e | 20 63 68 61 72 61 63 74 |of plain| charact|
|000001a0| 65 72 73 20 61 73 20 67 | 69 76 65 6e 0a 25 20 62 |ers as g|iven.% b|
|000001b0| 79 20 74 68 65 20 73 74 | 72 69 6e 67 2c 20 61 6e |y the st|ring, an|
|000001c0| 64 20 61 20 22 7d 22 20 | 65 6e 64 2d 67 72 6f 75 |d a "}" |end-grou|
|000001d0| 70 20 73 79 6d 62 6f 6c | 2e 20 20 5c 66 6f 6f 20 |p symbol|. \foo |
|000001e0| 77 69 6c 6c 20 74 68 65 | 6e 20 62 65 0a 25 20 73 |will the|n be.% s|
|000001f0| 75 69 74 61 62 6c 65 20 | 66 6f 72 20 5c 65 78 70 |uitable |for \exp|
|00000200| 61 6e 64 61 66 74 65 72 | 5c 69 6e 64 65 78 5c 66 |andafter|\index\f|
|00000210| 6f 6f 20 77 69 74 68 69 | 6e 20 61 20 66 6f 6f 74 |oo withi|n a foot|
|00000220| 6e 6f 74 65 2c 20 61 6e | 64 20 73 69 6d 69 6c 61 |note, an|d simila|
|00000230| 72 0a 25 20 75 73 65 73 | 2e 20 0a 0a 25 20 5c 64 |r.% uses|. ..% \d|
|00000240| 65 66 73 74 72 69 6e 67 | 20 77 6f 6e 27 74 20 77 |efstring| won't w|
|00000250| 6f 72 6b 20 72 69 67 68 | 74 20 69 6e 73 69 64 65 |ork righ|t inside|
|00000260| 20 5c 66 6f 6f 74 6e 6f | 74 65 20 6f 72 20 61 6e | \footno|te or an|
|00000270| 79 20 6f 74 68 65 72 0a | 25 20 63 6f 6e 73 74 72 |y other.|% constr|
|00000280| 75 63 74 69 6f 6e 20 74 | 68 61 74 20 72 65 61 64 |uction t|hat read|
|00000290| 73 20 69 74 73 20 61 72 | 67 75 6d 65 6e 74 20 62 |s its ar|gument b|
|000002a0| 65 66 6f 72 65 20 5c 64 | 65 66 73 74 72 69 6e 67 |efore \d|efstring|
|000002b0| 20 67 65 74 73 0a 25 20 | 74 6f 20 65 78 70 61 6e | gets.% |to expan|
|000002c0| 64 2c 20 62 65 63 61 75 | 73 65 20 69 74 20 77 6f |d, becau|se it wo|
|000002d0| 72 6b 73 20 62 79 20 63 | 68 61 6e 67 69 6e 67 20 |rks by c|hanging |
|000002e0| 72 65 61 64 65 72 20 73 | 79 6e 74 61 78 2e 0a 0a |reader s|yntax...|
|000002f0| 5c 6d 61 6b 65 61 74 6c | 65 74 74 65 72 0a 0a 5c |\makeatl|etter..\|
|00000300| 6e 65 77 74 6f 6b 73 5c | 64 65 66 73 74 72 69 6e |newtoks\|defstrin|
|00000310| 67 40 74 6f 6b 73 0a 0a | 5c 64 65 66 5c 64 65 66 |g@toks..|\def\def|
|00000320| 73 74 72 69 6e 67 23 31 | 7b 5c 64 65 66 5c 40 64 |string#1|{\def\@d|
|00000330| 65 66 73 74 72 69 6e 67 | 64 65 66 7b 5c 65 64 65 |efstring|def{\ede|
|00000340| 66 23 31 7b 5c 74 68 65 | 5c 64 65 66 73 74 72 69 |f#1{\the|\defstri|
|00000350| 6e 67 40 74 6f 6b 73 7d | 7d 5c 62 65 67 69 6e 67 |ng@toks}|}\beging|
|00000360| 72 6f 75 70 0a 20 20 20 | 20 5c 6c 65 74 5c 64 6f |roup. | \let\do|
|00000370| 5c 40 6d 61 6b 65 6f 74 | 68 65 72 20 5c 64 6f 73 |\@makeot|her \dos|
|00000380| 70 65 63 69 61 6c 73 20 | 5c 64 65 66 73 74 72 69 |pecials |\defstri|
|00000390| 6e 67 40 72 65 61 64 7d | 0a 0a 5c 64 65 66 5c 64 |ng@read}|..\def\d|
|000003a0| 65 66 73 74 72 69 6e 67 | 40 72 65 61 64 23 31 7b |efstring|@read#1{|
|000003b0| 5c 64 65 66 5c 40 74 65 | 6d 70 61 23 23 31 23 31 |\def\@te|mpa##1#1|
|000003c0| 7b 5c 67 6c 6f 62 61 6c | 5c 64 65 66 73 74 72 69 |{\global|\defstri|
|000003d0| 6e 67 40 74 6f 6b 73 7b | 7b 23 23 31 7d 7d 5c 65 |ng@toks{|{##1}}\e|
|000003e0| 6e 64 67 72 6f 75 70 0a | 20 20 20 5c 40 64 65 66 |ndgroup.| \@def|
|000003f0| 73 74 72 69 6e 67 64 65 | 66 7d 5c 40 74 65 6d 70 |stringde|f}\@temp|
|00000400| 61 7d 0a 0a 5c 6d 61 6b | 65 61 74 6f 74 68 65 72 |a}..\mak|eatother|
|00000410| 0a 0a | |.. | |
+--------+-------------------------+-------------------------+--------+--------+